package tech.wenxu.curekaconsumer.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 使用Fegin调用服务提供者
 * @author zhaowenxu
 * @date 2020/4/11 14:09
 */
@FeignClient("provider-user")
public interface HelloService {

    @RequestMapping(value = "/hello/{name}", method = RequestMethod.GET)
    String hello(@PathVariable("name") String name);
}
